<!DOCTYPE html>
<html xmlns:shiro="http://www.w3.org/1999/xhtml" xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="@{include} :: header"></head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <fieldset class="table-search-fieldset">
            <legend>搜索信息</legend>
            <form class="layui-form layui-form-pane" action="">
                <input id="isSelf" name="isSelf" type="hidden" th:value="${isSelf}" />
                <input id="deviceType" name="deviceType" type="hidden" th:value="${deviceType}" />
                <div class="layui-form-item">

                    <div class="layui-inline">
                        <label class="layui-form-label">所属片区</label>
                        <div class="layui-input-inline">
                            <select id="pianquId" name="pianquId" class="layui-input" lay-search="" lay-filter="pianquId">
                                <option value="">所属片区</option>
                                <th:block th:each="d : ${pianquses}">
                                    <option th:value="${d.id}" th:text="${d.pianquName}"></option>
                                </th:block>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">所属企业</label>
                        <div class="layui-input-inline">
                            <select id="shopId" name="shopId" lay-search="" class="layui-input">
                                <option value="">所属企业</option>
                                <th:block th:each="c : ${shopList}">
                                    <option th:value="${c.id}" th:text="${c.shopName}" ></option>
                                </th:block>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label style="width: 100px;" class="layui-form-label">开始时间</label>
                        <div class="layui-input-inline" style="width:120px;">
                            <input type="text" name="begin_date" id="begin_date" th:value="${begin_date}" placeholder="请选择开始时间" autocomplete="off" class="layui-input" />
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label style="width: 100px;" class="layui-form-label">结束时间</label>
                        <div class="layui-input-inline" style="width:120px;">
                            <input type="text" name="end_date" id="end_date" th:value="${end_date}" placeholder="请选择结束时间" autocomplete="off" class="layui-input" />
                        </div>
                    </div>
                    <div class="layui-inline">
                        <button type="submit" class="layui-btn layui-btn-primary  layui-btn-sm" lay-submit lay-filter="data-search-btn">
                            <i class="layui-icon"></i> 搜 索</button>
                    </div>
                </div>
            </form>
        </fieldset>
        <script type="text/html" id="toolbarDemo">
            <div class="layui-btn-container">
                <button shiro:hasPermission="module:device:add" class="layui-btn layui-btn-sm data-add-btn" lay-event="add">添加</button>
                <button class="layui-btn layui-btn-sm data-add-btn" lay-event="export">数据导出</button>
            </div>
        </script>
        <table class="layui-hide" id="exampleTable" lay-filter="currentTableFilter"></table>
        <script type="text/html" id="currentTableBar">
            <a class="layui-btn layui-btn-xs data-count-edit" lay-event="detail">详情</a>
            {{#  if(  d.useState!=null && d.useState == 1 && ((d.isSafe == 0 && d.departCheckState == 0) || (d.isSafe == 1 && d.managerCheckState == 0))){ }}
            <a class="layui-btn layui-btn-xs data-count-edit" shiro:hasPermission="module:device:edit" lay-event="edit">审核</a>
            {{#  } }}
            {{#  if( d.state != null && d.state == 1){ }}
            <a class="layui-btn layui-btn-xs data-count-edit" shiro:hasPermission="module:device:welding:record:reback" lay-event="reback">归还</a>
            {{#  } }}
            <a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete" shiro:hasPermission="module:device:welding:record:remove" lay-event="delete">删除</a>
        </script>
    </div>
</div>
<!--shiro控制bootstraptable行内按钮看见性 来自bootdo的创新方案 -->
<div th:include="@{include}:: footer"></div>
<script type="text/javascript" th:src="@{/js/appjs/module/device/welding/record/record.js}"></script>
</body>
</html>
